package com.cos.lession52.aop;

import org.springframework.aop.ThrowsAdvice;

/**
 * @author: COS
 * @time: 2022/3/7 10:33
 * @description:
 */
public class MyException implements ThrowsAdvice {
    public void afterThrowing(Exception ex){
        System.out.println("这个是异常增强,设置日志的记录");
        System.out.println("异常信息:"+ex.getMessage());
    }
}
